<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:composite="http://java.sun.com/jsf/composite">
<!-- definition de l'interface -->
<composite:interface>
    <composite:attribute name="value" required="false"/>
    <composite:attribute name="required" required="false"/>
    <composite:attribute name="styleClass" required="false"/>
    <composite:attribute name="readonly" type="java.lang.Boolean" default="true"/>
</composite:interface>

<composite:implementation>
           <!-- inclure l'editeur syntaxique -->
           <script language="javascript" type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
           <script language="javascript" type="text/javascript">
            tinyMCE.init({
                    // General options
                    elements : "#{cc.attrs.id}:#{cc.attrs.id}",
                    mode : "exact",
                    theme : "advanced",
                    plugins : "pagebreak,style,layer,advhr,advimage,advlink,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",
                    // Theme options
                    theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontsizeselect",
                    theme_advanced_buttons2 : "cut,copy,paste,pastetext,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
                    theme_advanced_toolbar_location : "top",
                    theme_advanced_toolbar_align : "left",
                    theme_advanced_statusbar_location : "bottom",
                    theme_advanced_resizing : true,
                    plugi2n_insertdate_dateFormat : "%d-%m-%Y",
                    plugi2n_insertdate_timeFormat : "%H:%M:%S",
                    theme_advanced_resize_horizontal : false,
                    paste_auto_cleanup_on_paste : true,
                    entities : "",
                    entity_encoding : "numeric"
            });
           </script>
           <label>#{cc.attrs.label} <c:if test="${cc.attrs.required}">*</c:if> </label><h:inputTextarea id="#{cc.attrs.id}" value="#{cc.attrs.value}" required="#{cc.attrs.required}" readonly="readonly"/>
</composite:implementation>
</html>